package com.yanqu.road.server.manager.cross.battle.dunhuangshiku;

import com.yanqu.road.entity.activity.dunhuangshiku.DunHuangShiKuHelpRecordData;
import com.yanqu.road.entity.activity.dunhuangshiku.DunHuangShiKuTeamData;
import com.yanqu.road.pb.worldmessage.WorldMessageProto;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @Description 敦煌石窟 队伍信息
 * @Author cwq
 * @Data 2021/4/15 17:57
 */
public class DunHuangShiKuTeam {
    /**
     * 基础信息
     */
    public DunHuangShiKuTeamData baseInfo;

    /**
     * 队长信息
     */
    public DunHuangShiKuUser leaderInfo;

    /**
     * 队伍玩家信息 k:队伍ID
     */
    public Map<Long, DunHuangShiKuUser> memberMap = new ConcurrentHashMap<>();

    /**
     * 申请加入的玩家信息 k:玩家ID
     */
    private Map<Long, DunHuangShiKuUser> applyJoinUserMap = new ConcurrentHashMap<>();

    /**
     * 队内聊天信息
     */
    public WorldMessageProto.WorldMessageListMsg.Builder chatList = WorldMessageProto.WorldMessageListMsg.newBuilder();

    /**
     * 队伍珍贵文书总数量 （活动开始才有）
     */
    public int bookNum;

    /**
     * 排名（-1表示未上榜）
     */
    public int rank = -1;


    public DunHuangShiKuTeam(DunHuangShiKuTeamData baseInfo) {
        this.baseInfo = baseInfo;
    }

    public DunHuangShiKuTeam(DunHuangShiKuTeamData baseInfo, DunHuangShiKuUser userInfo) {
        this.baseInfo = baseInfo;
        this.leaderInfo = userInfo;
    }

    public Map<Long, DunHuangShiKuUser> getApplyJoinUserMap() {
        return applyJoinUserMap;
    }

}
